<?php
abstract class AB
{
    public function holiday()
    {
        echo "放假了!";
    }
}
class Test extends AB
{

}
$te = new Test();
$te->holiday();